package com.xjoyt.pay.master.interfaces;

import java.util.List;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.xjoyt.pay.dto.ExecuteResult;
import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.master.params.CompanyPageParam;
import com.xjoyt.pay.master.po.CompanyRate;
import com.xjoyt.pay.master.vo.CompanyRateMap;

public interface CompanyRateContract {

	@RequestMapping("findAllByCompanyId/{companyId}")
	List<CompanyRate> findAllByCompanyId(@PathVariable("companyId") String companyId);

	@RequestMapping(value = "save", method = RequestMethod.POST)
	ExecuteResult<CompanyRate> save(CompanyRate param);

	@RequestMapping("remove/{id}")
	ExecuteResult<?> remove(@PathVariable("id") String id);

	@RequestMapping(value = "loadPageRate", method = RequestMethod.POST)
	PageResult<CompanyRateMap> loadPageRate(PageParam<CompanyPageParam> param);

	@RequestMapping(value = "saveRate", method = RequestMethod.POST)
	ExecuteResult<?> saveRate(CompanyRateMap param);
}
